
/**
 * DialogoRegistroNotasAnual.java
 */

 /**
 *  AdSec: Administrador de Secundarias
 *  Copyright (C) 2009 Daniela Ramírez Chaves (dannyrch@gmail.com)
 *  Copyright (C) 2009 Leonel Salazar Valverde (leo87sv@gmail.com)
 *
 *  This file is part of AdSec.
 *  AdSec is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  AdSec is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with AdSec.  If not, see <http://www.gnu.org/licenses/>.
 */


package adsec.presentacion;

import java.awt.Dimension;
import java.awt.Toolkit;


public class DialogoRegistroNotasAnual extends javax.swing.JDialog {

    /** Creates new form DialogoRegistroNotasAnual */
    public DialogoRegistroNotasAnual(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        try{
            //Con esto centramos la pantalla
            Dimension tamañoPantalla = Toolkit.getDefaultToolkit().getScreenSize();
            this.setBounds( (int)(tamañoPantalla.getWidth() - this.getSize().getWidth())/2 ,
                    (int)(tamañoPantalla.getHeight() - this.getSize().getHeight())/2 ,
                    (int)this.getSize().getWidth(), (int)this.getSize().getHeight());
        }catch(Exception e){
            System.err.println(e.getMessage());
        }
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        scrollPanelActaAnual = new javax.swing.JScrollPane();
        panelRegistroNotasAnual = new adsec.presentacion.PanelRegistroNotasAnual();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(800, 600));
        setName("Form"); // NOI18N

        scrollPanelActaAnual.setMaximumSize(new java.awt.Dimension(780, 580));
        scrollPanelActaAnual.setMinimumSize(new java.awt.Dimension(780, 580));
        scrollPanelActaAnual.setName("scrollPanelActaAnual"); // NOI18N

        panelRegistroNotasAnual.setMaximumSize(new java.awt.Dimension(700, 693));
        panelRegistroNotasAnual.setMinimumSize(new java.awt.Dimension(700, 693));
        panelRegistroNotasAnual.setName("panelRegistroNotasAnual"); // NOI18N
        panelRegistroNotasAnual.setPreferredSize(new java.awt.Dimension(700, 693));
        scrollPanelActaAnual.setViewportView(panelRegistroNotasAnual);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(scrollPanelActaAnual, javax.swing.GroupLayout.DEFAULT_SIZE, 900, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(scrollPanelActaAnual, javax.swing.GroupLayout.DEFAULT_SIZE, 696, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                DialogoRegistroNotasAnual dialog = new DialogoRegistroNotasAnual(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private adsec.presentacion.PanelRegistroNotasAnual panelRegistroNotasAnual;
    private javax.swing.JScrollPane scrollPanelActaAnual;
    // End of variables declaration//GEN-END:variables

    /**
     * @return the panelRegistroNotasAnual
     */
    public adsec.presentacion.PanelRegistroNotasAnual getPanelRegistroNotasAnual() {
        return panelRegistroNotasAnual;
    }

    /**
     * @param panelRegistroNotasAnual the panelRegistroNotasAnual to set
     */
    public void setPanelRegistroNotasAnual(adsec.presentacion.PanelRegistroNotasAnual panelRegistroNotasAnual) {
        this.panelRegistroNotasAnual = panelRegistroNotasAnual;
    }

}
